package com.ruoyi.system.service.award.teach.impl;

import java.util.List;

import com.ruoyi.system.domain.award.teach.TeachAwardTeacher;
import com.ruoyi.system.mapper.award.teach.TeachAwardTeacherMapper;
import com.ruoyi.system.service.award.teach.ITeachAwardTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 教学获奖教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
@Service
public class TeachAwardTeacherServiceImpl implements ITeachAwardTeacherService
{
    @Autowired
    private TeachAwardTeacherMapper teachAwardTeacherMapper;

    /**
     * 查询教学获奖教师
     * 
     * @param id 教学获奖教师主键
     * @return 教学获奖教师
     */
    @Override
    public TeachAwardTeacher selectTeachAwardTeacherById(Long id)
    {
        return teachAwardTeacherMapper.selectTeachAwardTeacherById(id);
    }

    /**
     * 查询教学获奖教师列表
     * 
     * @param teachAwardTeacher 教学获奖教师
     * @return 教学获奖教师
     */
    @Override
    public List<TeachAwardTeacher> selectTeachAwardTeacherList(TeachAwardTeacher teachAwardTeacher)
    {
        return teachAwardTeacherMapper.selectTeachAwardTeacherList(teachAwardTeacher);
    }

    /**
     * 新增教学获奖教师
     * 
     * @param teachAwardTeacher 教学获奖教师
     * @return 结果
     */
    @Override
    public int insertTeachAwardTeacher(TeachAwardTeacher teachAwardTeacher)
    {
        return teachAwardTeacherMapper.insertTeachAwardTeacher(teachAwardTeacher);
    }

    /**
     * 修改教学获奖教师
     * 
     * @param teachAwardTeacher 教学获奖教师
     * @return 结果
     */
    @Override
    public int updateTeachAwardTeacher(TeachAwardTeacher teachAwardTeacher)
    {
        return teachAwardTeacherMapper.updateTeachAwardTeacher(teachAwardTeacher);
    }

    /**
     * 批量删除教学获奖教师
     * 
     * @param ids 需要删除的教学获奖教师主键
     * @return 结果
     */
    @Override
    public int deleteTeachAwardTeacherByIds(Long[] ids)
    {
        return teachAwardTeacherMapper.deleteTeachAwardTeacherByIds(ids);
    }

    /**
     * 删除教学获奖教师信息
     * 
     * @param id 教学获奖教师主键
     * @return 结果
     */
    @Override
    public int deleteTeachAwardTeacherById(Long id)
    {
        return teachAwardTeacherMapper.deleteTeachAwardTeacherById(id);
    }
}
